package com.ruantu.clothing.entity.easyuientity;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Tree {

	private int id;
	private Object text;
	private List<Tree> children = new ArrayList<Tree>();

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Object getText() {
		return text;
	}

	public void setText(Object z) {
		this.text = z;
	}


	public List<Tree> getChildren() {
		return children;
	}

	public void setChildren(List<Tree> children) {
		this.children = children;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Tree) {
			Tree t = (Tree) obj;
			return t.id == this.id;
		}
		return false;
	}

}
